package mest.service.hank;

import mest.entity.plan_productjob_saleout;
import mest.entity.plan_productjob_saleout_record;
import mest.entity.plan_productjob_takematerial_record;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Classname PlanProductjobSaleoutService
 * @Description TODO
 * @Date 2019/12/8 15:22
 * @Created by 18416
 * @Auther: henk
 */
public interface PlanProductjobSaleoutService {

    int deleteByPrimaryKey(Integer id,String theirDb);

    int insert(plan_productjob_saleout record,String theirDb);

    int insertSelective(plan_productjob_saleout record,String theirDb);

    plan_productjob_saleout selectByPrimaryKey(Integer id,String theirDb);

    int updateByPrimaryKeySelective(plan_productjob_saleout record,String theirDb);

    int updateByPrimaryKey(plan_productjob_saleout record,String theirDb);

    int intsertList(List<plan_productjob_saleout> record,String theirDb);


    //通过ptid查询
    List<plan_productjob_saleout>  queryBypsId ( Integer index,
                                          Integer pageSize,
                                           Integer psId,String theirDb);

    List<Map> queryAllModel_byId  (@Param("index") Integer index,
                                   @Param("pageSize") Integer pageSize,
                                   @Param("psId") Integer psId,String theirDb);

    /**
     * 2.model 总行数查询
     * @param psId
     * @return
     */
    int findCount(Integer psId,String theirDb);



    int updateByone(String theirDb,
                    List<plan_productjob_saleout_record> record);

}
